package com.neu.flashmall.ms.entity;

import java.io.Serializable;

import com.neu.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 * @TableName sys_user
 */
@Data
@Getter
@Setter
@ApiModel(value = "后台管理系统用户类")
public class SysUser implements Serializable {
    /**
     *
     */
    @ApiModelProperty(value = "主键")
    @NotNull(message = "更新用户信息的时候主键不能为NULL",groups = {UpdateGroup.class})
    private Long id;

    /**
     *
     */
    @ApiModelProperty(value = "ums用户id")
    private Long umsUserId;

    /**
     *
     */
    @NotBlank(message = "更新用户信息的时候用户名不能为空",groups = {UpdateGroup.class})
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     *
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     *
     */
    @ApiModelProperty(value = "手机号码")
    private String phone;

    /**
     *
     */
    @NotNull(message = "更新用户信息的时候用户角色id不能为NULL",groups = {UpdateGroup.class})
    @ApiModelProperty(value = "用户类型id")
    private Integer role;

    /**
     * 0-关停；1-开启
     */
    @NotNull(message = "更新用户信息的时候用户状态不能为NULL",groups = {UpdateGroup.class})
    @ApiModelProperty(value = "用户状态")
    private Integer status;

    //验证码
    private String checkCode;

    private static final long serialVersionUID = 1L;


}
